//===COMMENT===

package bubble3d.interaction {
	
	public class CycleNotification {

		private static var _instance:CycleNotification = null;
	
		private var cycleListeners:Array;
		private var allComplete:Boolean = false;

		public static function instance():CycleNotification {
			if (CycleNotification._instance == null) {
				CycleNotification._instance = new CycleNotification();
			}
			return CycleNotification._instance;
		}
		public function CycleNotification() {
			cycleListeners = new Array();
		}
		public function reset():void {
			cycleListeners = new Array();
		}
		public function addCycleListener(newListener:Object):void {
			cycleListeners.push(newListener);
		}
		public function notifyListeners():void {
			for(var c:Number = 0; c<cycleListeners.length; c++) {
				cycleListeners[c].cycleComplete();
			}
		}
	}
}